{% extends "director/index.html" %}
{% load static %}
{% load jsonify %}

{% block page_content %}

<script type="text/javascript">


//	heads=
//	row =
//
//
//	can_add=
//	can_log=
//	can_del=
form_logic={
	el:'#there',
//			data:{
//				kw:{
//					heads:heads,
//			        row:row,
//			   		errors:{},
//				},
//				menu:menu,
//				can_add:can_add,
//				can_del:can_del,
//				can_log:can_log,
//			},
	data:{
		heads:heads,
		row:row,
		errors:{}
	},

	mixins:[field_fun],

}

	$(function () {
		new Vue(form_logic)
	})
</script>

{% block extra_head %}

{% endblock %}

<div id='there'>

	<div v-if="can_log" style='float: right;padding: 5px 20px;'>
		<a :href="log_url()">日志</a>
	</div>

	<ol v-if="page_label" class="breadcrumb">
		<b v-text="page_label"></b>
	</ol>
	<path-nav v-else :menu='menu'></path-nav>

	<com-form-btn :form_bus="this"></com-form-btn>
	<!--<div style='overflow: hidden;'>-->
		<!--<div class="btn-group" style='float: right;'>-->
			<!--<button type="button" class="btn btn-default" @click='submit()' v-if='can_add'>Save</button>-->
			<!--<button type="button" class="btn btn-default" v-if='can_del' @click='del_row()'>删除</button>-->
			<!--<button type="button" class="btn btn-default" @click='cancel()' >Cancel</button>-->
		<!--</div>-->
	<!--</div>-->
	

	<div class='field-panel'>
		
		<field  v-for='head in heads' :key="head.name" :name='head.name' :row="row" :head='head'></field>
	</div>
</div>

{% endblock %}